{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 3,
   "id": "a7601784",
   "metadata": {},
   "outputs": [],
   "source": [
    ":dep reqwest = { version = \"0.12\", features = [\"json\"] }"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "id": "f63bd7ae",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{\"origin\": \"185.244.208.136\"}"
      ]
     },
     "execution_count": 4,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "use std::collections::HashMap;\n",
    "\n",
    "let resp = reqwest::get(\"https://httpbin.org/ip\")\n",
    "        .await?\n",
    "        .json::<HashMap<String, String>>()\n",
    "        .await?;\n",
    "resp"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Rust",
   "language": "rust",
   "name": "rust"
  },
  "language_info": {
   "codemirror_mode": "rust",
   "file_extension": ".rs",
   "mimetype": "text/rust",
   "name": "Rust",
   "pygment_lexer": "rust",
   "version": ""
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
